<!DOCTYPE HTML>
<html>
	<head>
		<title>91Book</title>
		<meta charset="utf-8">
		<link href='css/nav.css' rel='stylesheet'>
		<link href='css/book.css' rel='stylesheet'>
		<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
		<script src="https://unpkg.com/vue/dist/vue.js"></script>
	</head>
	<body>
		<div class='navTop'>

			<div class='main' id='app'>
				<div class='navIn'>
					<a href='/'><span>91Book</span></a>
					<div class='search'>
						<input class='txt' type='text' placeholder='    Search here..' required>
						<input type="image" name="imageField" class='btn' src="img/search.png">
					</div>
					<div class='user'>
						<a href='denglu'>登录/注册</a> 
					</div>
				</div>

				<div class='navSec'>
					<div class='toplist'>
						<ul>
							<h1>图书排行榜</h1>
							<li><a href="#">2016亚马逊图书排行榜</a></li>
							<li><a href="#">2016亚马逊图书排行榜</a></li>
							<li><a href="#">豆瓣2016年度读书榜单</a></li>
							<li><a href="#">豆瓣2016年读书报告</a></li>
						</ul>
					</div>
				</div>

				<div class='books'>
					<div class='book'>
						<div class='bookPlay'>
							<span></span>
							<img src=''>
						</div>
						<div class='like bookBtn'>收藏<img src='img/heart.png'></div>
						<div class='down bookBtn'>下载<img src='img/down.png'></div>
					</div>

					<div class='showTxt'>
						<span>内容简介</span>
						<div class='txt'></div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#app",
				data: {
					newBooks: "",
					hotBooks: ""
				},
				beforeCreate(){
					jQuery.ajax({
						type: 'Get',
						url: "http://172.16.186.66:4001/a",
						success: function (data) {
							vm.newBooks = data.newBook,
							vm.hotBooks = data.hotBook;
						}
					})
				}
			})
	</script>
	</body>
</html>